package com.baizhi.feign;

import com.baizhi.feign.rollback.ClazzRollBack;
import com.baizhi.po.ClazzsPO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "CLAZZ-SERVICE", fallback = ClazzRollBack.class)
public interface FeignClazz {
    @GetMapping("/clazzs/{id}")
    public ClazzsPO queryById(@PathVariable Long id);
}
